package com.chenpp.redis.lru;

/**
 * @Description
 * @Author chenpp
 * @Date 2019/10/21 17:50
 * 定义双向链表的节点
 */
public class Node<K,V> {
    private K key;
    private V value;
    private Node next;
    private Node pre;
    public Node(K key,V value){
        this.key = key;
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public void setKey(K key) {
        this.key = key;
    }

    public V getValue() {
        return value;
    }

    public void setValue(V value) {
        this.value = value;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public Node getPre() {
        return pre;
    }

    public void setPre(Node pre) {
        this.pre = pre;
    }
}
